package cn.kgc.springcloud.client;

import org.springframework.stereotype.Component;

/**
 * @author 课工场
 * @date 2024/4/29
 * @description  Service2Client 快速响应处理类
 */
@Component   // 将类添加到spring容器
public class Service2ClientFallback implements Service2Client{

    @Override
    public String method1(Integer id) {
        return  "服务器繁忙，请稍后再试"+id;
    }


    @Override
    public String method2(Integer id) {

        return "服务器繁忙，请稍后再试";
    }
}
